<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <span class="inline1">内联盒子1</span>
    <span
        class="inline2">内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2内联盒子2</span>
</body>
<style>
    .box1 {
        /* width: 100px; */
        height: 100px;
        background: pink;
    }

    .box2 {
        width: 100px;
        height: 100px;
        background: powderblue;
    }

    .inline1 {
        width: 100px;
        height: 100px;
        background: plum;
    }

    .inline2 {
        background: papayawhip;
    }
</style>

</html>